Skip to content

A bunch of small fixes to get the pipeline running#5

Merged
bmonkman merged 3 commits intomasterfrom
fixes-to-get-pipeline-working
Apr 28, 2020
Merged

A bunch of small fixes to get the pipeline running#5
bmonkman merged 3 commits intomasterfrom
fixes-to-get-pipeline-working

Conversation

@bmonkman
Copy link
Copy Markdown
Contributor

No description provided.

fieldRef:
fieldPath: metadata.name
- name: SERVER_PORT
value: "80"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious why do we put backend on 80? would it make it more confusing what is being mapped to what? (eg hides the ingress mapping and stuff)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's serving HTTP traffic, and that is the default port. Since you don't need to deal with ports conflicting in Kubernetes this isn't a problem.
What do you mean about hiding the ingress mapping?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as in boilerplate backend port: 80 may lead people to think the port in the deployment is the port for the end url (which in this case it is)
Kinda hides the fact that ingress will expose it at 80 regardless

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone fundamentally doesn't understand the difference between deployment, service, and ingress, we should try to solve that with documentation, not hoping that they get confused by all the different ports and look it up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we are giving them a nice name to refer to, though I realize I put it in the wrong spot above. Will fix that.

@bmonkman bmonkman merged commit f2fdcb4 into master Apr 28, 2020
@bmonkman bmonkman deleted the fixes-to-get-pipeline-working branch April 28, 2020 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants